package com.itheima.exerciseTest.method20_29.method23;

public class DemoRubbable {
    public static void main(String[] args) throws InterruptedException {
        MyRubbable mr = new MyRubbable();

        Thread t1 = new Thread(mr);
        Thread t2 = new Thread(mr);
        Thread t3 = new Thread(mr);

        t1.setName("一号窗口");
        t2.setName("二号窗口");
        t3.setName("三号窗口");

        t1.start();
        t2.start();
        t3.start();
    }
}
